﻿namespace QMERP.Domain.Dtos
{
    public class StockResponse
    {
        public long Id { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public int Qty { get; set; }
        /// <summary>
        /// 基本库存
        /// </summary>
        public int BasicQty { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public long CreatedBy { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreatedByName { get; set; } = "";
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedOn { get; set; } = DateTime.Now;
        /// <summary>
        /// 更新人Id
        /// </summary>
        public long? UpdatedBy { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public string? UpdatedByName { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdatedOn { get; set; }

        public long WarehouseId { get; set; }
        public long LensId { get; set; }
        public WarehouseResponse? Warehouse { get; set; }
        public LensResponse? Lens { get; set; }
        public List<LensDetailResponse> LensDetails { get; set; } = new();
        public List<LensDetailResponse> BasicQtyLensDetails { get; set; } = new();
    }
}
